import service from '@/utils/request'
// @Tags CasPersons
// @Summary 创建casPersons表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CasPersons true "创建casPersons表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /casPersons/createCasPersons [post]
export const createCasPersons = (data) => {
  return service({
    url: '/casPersons/createCasPersons',
    method: 'post',
    data
  })
}

// @Tags CasPersons
// @Summary 删除casPersons表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CasPersons true "删除casPersons表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /casPersons/deleteCasPersons [delete]
export const deleteCasPersons = (params) => {
  return service({
    url: '/casPersons/deleteCasPersons',
    method: 'delete',
    params
  })
}

// @Tags CasPersons
// @Summary 批量删除casPersons表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除casPersons表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /casPersons/deleteCasPersons [delete]
export const deleteCasPersonsByIds = (params) => {
  return service({
    url: '/casPersons/deleteCasPersonsByIds',
    method: 'delete',
    params
  })
}

// @Tags CasPersons
// @Summary 更新casPersons表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CasPersons true "更新casPersons表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /casPersons/updateCasPersons [put]
export const updateCasPersons = (data) => {
  return service({
    url: '/casPersons/updateCasPersons',
    method: 'put',
    data
  })
}

// @Tags CasPersons
// @Summary 用id查询casPersons表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.CasPersons true "用id查询casPersons表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /casPersons/findCasPersons [get]
export const findCasPersons = (params) => {
  return service({
    url: '/casPersons/findCasPersons',
    method: 'get',
    params
  })
}

// @Tags CasPersons
// @Summary 分页获取casPersons表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取casPersons表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /casPersons/getCasPersonsList [get]
export const getCasPersonsList = (params) => {
  return service({
    url: '/casPersons/getCasPersonsList',
    method: 'get',
    params
  })
}
// @Tags CasPersons
// @Summary 获取数据源
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /casPersons/findCasPersonsDataSource [get]
export const getCasPersonsDataSource = () => {
  return service({
    url: '/casPersons/getCasPersonsDataSource',
    method: 'get',
  })
}

// @Tags CasPersons
// @Summary 不需要鉴权的casPersons表接口
// @accept application/json
// @Produce application/json
// @Param data query personReq.CasPersonsSearch true "分页获取casPersons表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /casPersons/getCasPersonsPublic [get]
export const getCasPersonsPublic = () => {
  return service({
    url: '/casPersons/getCasPersonsPublic',
    method: 'get',
  })
}
